html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #f1f4f6;
  color: #2c3e50;
  font-size: 12px;
}

a {
  text-decoration: none;
  font-size: 12px !important;
}

li {
  list-style: none;
  cursor: pointer;
  font-size: 12px !important;
}

input, textarea {
  font-size: 12px !important;
  padding: 5px 10px;
}

dl {
  text-align: left;
  padding: 10px;
  margin: 0;
}

dl dt {
  line-height: 25px;
}

dl dd {
  line-height: 25px;
  margin: 0;
}

i:before {
  font-size: 12px;
}

span {
  font-size: 12px;
}

ul {
  padding: 0;
  margin: 0;
}

ul li {
  line-height: 25px;
}

.line {
  border-bottom: 1px solid #f1f4f6;
  margin: 5px 0;
}

.line-1 {
  border-bottom: 1px solid #f1f4f6;
}

.line-5 {
  border-bottom: 5px solid #f1f4f6;
}

.line-10 {
  border-bottom: 10px solid #f1f4f6;
}

.ml-5 {
  margin-left: 5px;
}

.ml-10 {
  margin-left: 10px;
}

.mr-2 {
  margin-right: 2px;
}

.mr-5 {
  margin-right: 5px;
}

.mr-10 {
  margin-right: 10px;
}

.mt-5 {
  margin-top: 5px;
}

.mt-10 {
  margin-top: 10px;
}

.mb-5 {
  margin-bottom: 5px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.tl {
  text-align: left;
}

.tr {
  text-align: right;
}

.tc {
  text-align: center;
}

.opacity-3 {
  opacity: 0.3;
}

.opacity-5 {
  opacity: 0.5;
}

.opacity-8 {
  opacity: 0.8;
}

.f-13 {
  font-size: 13px;
}

.f-14 {
  font-size: 14px;
}

.f-16 {
  font-size: 16px;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.bold {
  font-weight: bold;
}

.ellipsis {
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.desc {
  color: #606266;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.noshow {
  display: none !important;
}

.show {
  display: block;
}

.show-i {
  display: block !important;
}

#app, #header, #aside {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#header .el-submenu__title {
  height: 50px;
  line-height: 50px;
  padding: 0;
  border-bottom: 0;
}

#header .el-submenu__icon-arrow {
  margin: 0;
}

#header .el-icon-arrow-down:before {
  content: unset;
}

#body {
  margin: 10px 100px;
}

#aside dl dd {
  padding: 0 5px;
}

#aside .el-link--inner {
  width: 100%;
}


.el-header {
  background: #333;
  color: #fff;
  height: 50px !important;
  line-height: 50px;
  padding: 0 100px;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 2001;
}

.el-aside {
  background: #fff;
  color: #606266;
  padding: 0;
  margin-left: 10px;
  width: 280px !important;
  height: 100%;
  overflow: unset;
}

.el-main {
  background: #fff;
  color: #606266;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

.el-footer {
  padding: 10px;
  margin: 0;
  width: 100%;
  height: 100% !important;
}

.search .el-input__inner {
  width: 180px;
  border: 0;
  border-radius: 3px;
  height: 25px;
  line-height: 25px;
  padding: 0 25px 0 10px;
}

.search .el-input__suffix {
  right: 1px;
}

.el-table, .el-form-item__label {
  font-size: 12px
}

.el-link {
  width: 100%;
  height: 100%;
}

.el-table .cell {
  line-height: unset;
}

.el-pagination {
  text-align: center;
  font-weight: normal;
  padding: 15px 0;
}

.el-textarea__inner {
  padding: 5px;
}

.el-input__inner {
  padding: 0 5px;
}

.el-message {
  z-index: 2002 !important;
}

.el-backtop {
  right: 30px !important;
}

.el-menu {
  border-right: unset;
}

.el-icon-caret-top:before {
  font-size: 20px;
}

#web-icon-menu .el-badge__content.is-dot {
  width: 6px;
  height: 6px;
  right: 3px;
}

#icon-menu .el-badge__content.is-dot {
  width: 5px;
  height: 5px;
  right: 3px;
}

.label {
  line-height: 24px;
  padding: 5px 20px;
}

.label a {
  color: #fff;
  margin-right: 3px;
  padding: 1px 5px;
  opacity: 0.9;
  font-weight: 500;
  border-radius: 3px;
}

.label a:nth-child(5n) {
  background-color: #4A4A4A;
}

.label a:nth-child(5n+1) {
  background-color: #428BCA;
}

.label a:nth-child(5n+2) {
  background-color: #5CB85C;
}

.label a:nth-child(5n+3) {
  background-color: #D9534F;
}

.label a:nth-child(5n+4) {
  background-color: #F0AD4E;
}

/*--------------------------------------------移动端--------------------------------------------*/

@-ms-viewport {
  width: device-width
}

@media (max-width: 1024px) {
  #body {
    margin: 10px 60px;
  }

  .el-header {
    padding: 0 60px;
  }

  .el-aside {
    width: 250px !important;
  }

  .el-backtop, #icon-menu, #web-icon-menu {
    right: 10px !important;
  }
}

@media (max-width: 768px) {
  #body {
    margin: 10px 40px;
    display: inline-block;
  }

  #search {
    position: absolute;
    top: 0;
    right: 50px;
  }

  #info, #category, #web-icon-menu {
    display: none;
  }

  #icon-menu {
    display: block !important;
    right: 5px !important;
    bottom: 50px !important;
  }

  #web-icon-menu {
    display: none ;
  }

  #icon-menu .icon-menu-item,.el-badge,.el-avatar {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  #icon-menu i:before {
    font-size: 12px;
  }

  .menu-item {
    display: none;
  }

  .el-header {
    padding: 0 40px;
  }

  .el-header .menu-icon {
    display: block !important;
  }

  .el-aside {
    width: 100% !important;
    float: left;
    margin: 0
  }

  .el-aside dl dd, .el-aside ul li {
    display: inline-block;
    width: -webkit-calc(50% - 10px);
    width: -moz-calc(50% - 10px);
    width: calc(50% - 10px);
  }

  .el-backtop {
    right: 5px !important;
    width: 30px;
    height: 30px;
  }

  .desc {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 500px) {
  #search {
    display: none;
    position: fixed;
    top: 80px;
    left: 50%;
    width: 100%;
    height: 50px;
    margin: unset !important;
    background: #fff;
    ctransform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
  }

  #search .el-autocomplete.inline-input {
    width: 90%;
  }

  #new-comment dl dd, #hot-article dl dd {
    width: -webkit-calc(100% - 10px);
    width: -moz-calc(100% - 10px);
    width: calc(100% - 10px);
  }

  .desc {
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 414px) {
  #body {
    margin: 1px 0 0;
  }

  #header .logo {
    font-size: 22px;
  }

  .el-header {
    padding: 0 15px 0 20px;
  }

  .el-footer {
    background: #fff;
    border-top: 5px solid #f1f4f6;
  }

  .el-aside dl dd {
    width: -webkit-calc(100% - 10px);
    width: -moz-calc(100% - 10px);
    width: calc(100% - 10px);
  }

  #link dl dd {
    display: inline-block;
    width: -webkit-calc(30% - 3px);
    width: -moz-calc(30% - 3px);
    width: calc(30% - 3px);
  }

  #index .label {
    display: none;
  }

  #comment .comment-title .el-row .el-col {
    width: calc(100% - 10px);
    margin-right: 0;
  }

  #comment .comment-title .el-row .el-col:first-child {
    margin-bottom: 10px;
  }

  #article .footer {
    height: unset;
    line-height: 25px;
    margin: 8px 0;
  }

  #article .footer .el-row .el-col {
    padding: 0 !important;
    width: 100%;
  }
}
